$(document).ready(function () {
    refreshChart();
    window.setInterval(
        function (){
            //
            $("#showChart div:gt(0)").remove();
            //每重新刷新一次之前 除了第一个作为模板保留 其他删除
            refreshChart();
            },20000);
    function refreshChart() {
        $.ajax({
            "url": "../../chartController/charts/memberTop3byMcost",
            "method": "get",
            "dataType": "json",
            "success": function (dto) {
                // alert(dto);
                console.log(dto);
                var charts = dto.tList;
                $("#showChart div:gt(0)").remove();
                showListAttribute(charts, $("#showChart div").eq(0));

            }
        });

    }
});